package com.hksj.jetlinks.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 角色信息表
 * @author chenxingqing
 */
@Data
@ApiModel
@TableName("s_role")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "说明")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "状态。enabled为正常，disabled为已禁用")
    @TableField("state")
    private String state;

    @ApiModelProperty(value = "所属分组")
    @TableField("group_id")
    private String groupId;

    @ApiModelProperty(value = "创建者ID(只读)")
    @TableField("creator_id")
    private String creatorId;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

}
